package com.ruoyi.business.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 运单改价历史业务对象 freight_revaluation_history
 *
 * @author ruoyi
 * @date 2024-04-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class FreightRevaluationHistoryBo extends BaseEntity {

    /**
     * 运单改价历史表
     */
    @NotNull(message = "运单改价历史表不能为空", groups = { EditGroup.class })
    private Long historyId;

    /**
     * 运单id
     */
    @NotNull(message = "运单id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long freightId;

    /**
     * 改价前金额
     */
    @NotNull(message = "改价前金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal beforeAmount;

    /**
     * 改价后金额
     */
    @NotNull(message = "改价后金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal afterAmount;

    /**
     * 操作人
     */
    @NotNull(message = "操作人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long freightOperateUser;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 其他参数
     */
    @NotBlank(message = "其他参数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String elseParams;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @NotNull(message = "删除标志（0代表存在 1代表删除）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isDeleted;


}
